package com.ruoyi.notice.api.factory;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.notice.api.RemoteCarNoticeService;
import com.ruoyi.notice.api.domain.Message;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 用户服务降级处理
 * 
 * @author ruoyi
 */
@Component
public class RemoteCarNoticeFallbackFactory implements FallbackFactory<RemoteCarNoticeService>
{
    private static final Logger log = LoggerFactory.getLogger(RemoteCarNoticeFallbackFactory.class);


    @Override
    public RemoteCarNoticeService create(Throwable cause) {
        return new RemoteCarNoticeService() {

            @Override
            public AjaxResult orderMessage(Message message, String source) {
                return null;
            }

            @Override
            public AjaxResult rescueMessage(Message message, String source) {
                return null;
            }

            @Override
            public AjaxResult deleteRescueMessage(String hid, String source) {
                return null;
            }
        };
    }
}
